*****************
**** Table 3 ****
*****************

use "$data/telephone_surveydata_ready" , clear

local controls teamdummy* firststickerdummy* preratiow1 lastdebt_demeanedw1 prepaymentsmadedummy*  
local addcontrols i.collectiv i.pc i.highvisible

log using "$output/table 3", replace

reg q8normalized i.treatmentidentitynew `controls' if treatmentall!=0, vce(cluster dayteam)

reg q8normalized above##i.treatmentidentitynew `controls' if treatmentall!=0, vce(cluster dayteam)

oprobit q8 above##i.treatmentidentitynew `controls' if treatmentall!=0 , vce(cluster dayteam)

log close
